#!/usr/bin/env python
# encoding: utf-8
"""
abstract.py

Created by Alakazam on 2008-03-28.
Copyright (c) 2008 . All rights reserved.
"""

import unittest

class abstract:
  IsAbstractError = NotImplementedError
  
  def __init__(self):
    import inspect
    raise self.IsAbstractError(
      inspect.getouterframes(inspect.currentframe())[1][3]
      + ' must be implemented in subclass')

class abstractTests(unittest.TestCase):
  def test(self):
    self.assertRaises(NotImplementedError, abstract)


if __name__ == '__main__':
  unittest.main()